home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / mac / Explorer / Colorlit.dxr / 00121.ls < prev    next >
Encoding:
Text File  |  1998-07-22  |  481 b   |  29 lines

  1. on mouseUp
  2.   set x to the mouseH - the left of sprite 13
  3.   if (x >= 0) and (x <= 38) then
  4.     go("V")
  5.   end if
  6.   if (x >= 39) and (x <= 129) then
  7.     go("B")
  8.   end if
  9.   if (x >= 130) and (x <= 220) then
  10.     go("B1")
  11.   end if
  12.   if (x >= 221) and (x <= 284) then
  13.     go("G")
  14.   end if
  15.   if (x >= 285) and (x <= 340) then
  16.     go("Y")
  17.   end if
  18.   if (x >= 341) and (x <= 416) then
  19.     go("O")
  20.   end if
  21.   if x >= 417 then
  22.     go("R")
  23.   end if
  24. end
  25.  
  26. on mouseDown
  27.   puppetSound("click")
  28. end
  29.